﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace AnyGrid
{
    /// <summary>
    /// This type wraps up options which affect the entire, rendered page, not just a single grid.
    /// </summary>
    public class ViewOptions
    {
        /// <summary>
        /// JavaScript statements which will be appended after the JavaScript call to initialize the 
        /// grid, if the current grid renderer uses JavaScript at all and if the page contains at least 
        /// one grid.
        /// </summary>
        public string AfterGridInitializationJavaScript { get; set; }

        /// <summary>
        /// If set, will be merged into generated script tag attributes
        /// </summary>
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification="Following ASP.NET MVC framework convention of passing these nullably.")]
        public IDictionary<string, object> ScriptTagHtmlAttributes { get; set; }
    }
}
